package ribbon.consumer.controller;


import com.xylink.model.SdkMeeting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import ribbon.consumer.config.XylinkConf;
import ribbon.consumer.utils.Constants;
import ribbon.consumer.utils.XylinkRequestUtil;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/xylink/api")
public class XylinkController {


   @Autowired
   private XylinkRequestUtil xylinkRequestUtil;


    @RequestMapping(value = "/createMeeting",method = RequestMethod.POST)
    public Object createMeeting(@RequestBody Map<String, String> params) throws Exception {
        SdkMeeting meetResult = xylinkRequestUtil.getMeetingUrl(params);
        return meetResult;
    }






}
